import axios from '@/utils/request'

/**
 * 用户登录注册
 * @param {String} mobile
 * @param {String} code
 */
export const postLogin = (mobile, code) => {
  return axios({
    url: '/v1_0/authorizations',
    method: 'POST',
    data: {
      mobile,
      code
    }
  })
}
